package com.wingscode.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wingscode.modules.sys.entity.OfferPriceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报价
 *
 * @author yan
 */
@Mapper
public interface OfferPriceDao extends BaseMapper<OfferPriceEntity> {

    List<OfferPriceEntity> getByUserId(@Param("inquiryId") Integer inquiryId, @Param("userId") Integer userId);

    List<OfferPriceEntity> getListByInquiryId(@Param("inquiryId") Integer inquiryId);

    void updateByInquiryId(OfferPriceEntity offerPriceEntity);

}
